package model.expression.operator;

import java.util.List;

import model.expression.AbstractExpression;

public class NotOperator extends AbstractUnaryOperator {
	public NotOperator(List<AbstractExpression> children) {
		super(children);
	}

	@Override
	public int evaluate() {
		return this.children.get(0).evaluate() == 0 ? 1 : 0;
	}

}
